package com.sskj.mine.ui.activity;


import android.widget.RelativeLayout;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.sskj.common.base.App;
import com.sskj.common.util.ClickUtil;
import com.sskj.lib.RConfig;
import com.sskj.lib.base.BaseActivity;
import com.sskj.mine.R;
import com.sskj.mine.R2;
import com.sskj.mine.bean.SysBean;
import com.sskj.mine.presenter.AboutUsActivityPresenter;

import butterknife.BindView;

@Route(path = RConfig.MINE_ABOUT_US)//关于我们
public class AboutUsActivity extends BaseActivity<AboutUsActivityPresenter> {
    @BindView(R2.id.rlAboutUs)
    RelativeLayout rlAboutUs;
    @BindView(R2.id.rl_yijian)
    RelativeLayout rlYijian;  // 意见反馈

    @Override
    protected int getLayoutResId() {
        return R.layout.mine_activity_about_us;
    }

    @Override
    public AboutUsActivityPresenter getPresenter() {
        return new AboutUsActivityPresenter();
    }

    @Override
    protected void initView() {
        setTitle(App.INSTANCE.getString(R.string.mineAboutUsActivity0));
        ClickUtil.click(rlAboutUs, () -> {
            ARouter.getInstance().build(RConfig.MINE_CONTANCT_US).navigation();  // 关于我们--联系我们
        });
        ClickUtil.click(rlYijian, () -> {
            ARouter.getInstance().build(RConfig.MINE_YJFK_US).navigation();  // 关于我们--意见反馈
        });
    }

    @Override
    protected void initData() {
        mPresenter.getData();
    }

    public void setData(SysBean sysBean) {

    }

    @Override
    public boolean getImmersion() {
        return false;
    }
}
